<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE HTML>
<html lang="zh">
<head>
<base href="${applicationScope.baseHref}" />
<title>Test</title>
</head>
<body>
	<form id="form" action="register/register.jsps" method="post"
		onsubmit="return checkValue();">
		<input type="submit" id="submit" class="submit" value="提交注册" />
	</form>
	<script type="text/javascript">
		function checkValue() {
			alert(0);
			$.ajax({
				url : 'json/isEmailAccountExists.jsps',
				type : 'post',
				data : {
					'emailAccount' : $("#emailAccount").val()
				},
				dataType : 'json',
				success : function(data) {
					alert(data.flag);
				}
			});

			return false;
		}
	</script>
</body>
</html>